package Dao;

import POJO.Student;
import org.apache.ibatis.annotations.*;

public interface StudentMapper {
    @Insert("insert into student(name,age) values (#{name},#{age})")
    int insert(Student student);
    @Update("update student set name=#{name},age=#{age} where id=#{id}")
    int update(Student student);
    @Delete("delete from student where id=#{id}")
    int delete(int id);
    @Select("select * from student where id=#{p1} and name=#{p2}")
    Student selectByIDAndName(@Param("p1") int p1, @Param("p2") String p2);
}
